package com.zhongmeng.rxjava2test.bean

/**
 * Created by rcw on 2017/7/31.
 */

class LoginBean : BaseBean() {

    /**
     * invalidtime : 20171018133244
     * time : 1508304764000
     * token : 18000597a66e3bc4b3d044cfa1c293dc
     * userinfo : {"head_url":"http://owauh0662.bkt.clouddn.com/user_headimage_app_20170924160119.jpg","id":146,"username":"小竹","unitname":"四叶草幸运之草公司","use_state":"1","areacode":"410801000000","loginid":"15555123456","plat_type":"1","password":"463408fdf59bb9d9","unit_code":"41080130000"}
     */

    var invalidtime: Long = 0

    var time: Long = 0
    var token: String? = null
    var userinfo: UserinfoBean? = null

    override fun toString(): String {
        return "LoginBean{" +
                "invalidtime=" + invalidtime +
                ", time=" + time +
                ", token='" + token + '\'' +
                ", userinfo=" + userinfo +
                '}'
    }

    class UserinfoBean {
        /**
         * head_url : http://owauh0662.bkt.clouddn.com/user_headimage_app_20170924160119.jpg
         * id : 146
         * username : 小竹
         * unitname : 四叶草幸运之草公司
         * use_state : 1
         * areacode : 410801000000
         * loginid : 15555123456
         * plat_type : 1
         * password : 463408fdf59bb9d9
         * unit_code : 41080130000
         */

        var head_url: String? = null
        var id: Int = 0
        var username: String? = null
        var unitname: String? = null
        var use_state: String? = null
        var areacode: String? = null

        var loginid: String? = null
        var plat_type: String? = null
        var password: String? = null
        var unit_code: String? = null

        override fun toString(): String {
            return "UserinfoBean{" +
                    "head_url='" + head_url + '\'' +
                    ", id=" + id +
                    ", username='" + username + '\'' +
                    ", unitname='" + unitname + '\'' +
                    ", use_state='" + use_state + '\'' +
                    ", areacode='" + areacode + '\'' +
                    ", loginid='" + loginid + '\'' +
                    ", plat_type='" + plat_type + '\'' +
                    ", password='" + password + '\'' +
                    ", unit_code='" + unit_code + '\'' +
                    '}'
        }
    }
}
